import request from "../../router/axios.js";

export function returnManagementFetchList(obj) {
  return request({
    url: "/eims/returnManagement/returnManagementPage",
    method: "get",
    params: obj
  });
}
//统计退货商品数量
export function getReturnGoodsNumberSum(obj) {
  return request({
    url: "/eims/returnManagement/getReturnGoodsNumberSum",
    method: "post",
    data: obj
  });
}

//结算首页
export function returnSettlementFetchList(obj) {
  return request({
    url: "/eims/returnManagement/returnSettlementPage",
    method: "get",
    params: obj
  });
}


// 新增
export function saveNewReturnManagementOrder(obj) {
  return request({
    url: "eims/returnManagement",
    method: "post",
    data: obj
  });
}

// 删除
export function delReturnManagementOrder(id) {
  return request({
    url: "/eims/returnManagement/" + id,
    method: "delete"
  });
}

// 修改
export function putReturnManagementObj(obj) {
  return request({
    url: "/eims/returnManagement",
    method: "put",
    data: obj
  });
}

// 通过id审核
export function auditInfoById(id) {
  return request({
    url: "/eims/returnManagement/audit/" + id,
    method: "get"
  });
}

// 通过id查询
export function returnManagementById(id) {
  return request({
    url: "/eims/returnManagement/" + id,
    method: "get"
  });
}


// 结算修改
export function editSettlementById(obj) {
  return request({
    url: "/eims/returnManagement/settlement",
    method: "put",
    data: obj
  });
}
